package com.j1ay.forum.model.dto.params;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @Author J1ay
 * @Date 2021/12/14 22:03
 * @Description
 */
@Data
@ApiModel("用户注册")
public class RegisterParams {

    @ApiModelProperty(value = "用户名", required = true)
    private String username;

    @ApiModelProperty(value = "密码", required = true)
    private String password;

    @ApiModelProperty(value = "昵称", required = true)
    private String nickname;

    @ApiModelProperty("邮箱")
    private String email;

    @ApiModelProperty("角色Id")
    private Long roleId;

    @ApiModelProperty("默认手机号注册 1邮箱注册")
    private int type = 0;
}
